import java.util.ArrayList;
import java.util.List;

/**
 * 分隔数组中数字的数位
 *
 * @USER: Administrator
 * @DATE: 2024/9/28 上午12:16
 * @VERSION: 1.0.0
 */
public class LC2553 {
    public static void main(String[] args) {

    }

    public int[] separateDigits(int[] nums) {
        List<Integer> list = new ArrayList<>();
        for (int i = 0; i < nums.length; i++) {
            String s = nums[i] + "";
            for (int j = 0; j < s.length(); j++) {
                list.add(s.charAt(j)-'0');
            }
        }
        int[] res = new int[list.size()];
        for (int i = 0; i < list.size(); i++) {
            res[i] = list.get(i);
        }
        return res;
    }

}
